home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
RAND.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
286 b
|
20 lines
/* rand.c from page 236*/
#include <stdio.h>
#include <stdlib.h>
main()
{
int i;
/* Generate and display
20 pseudorandom integers */
printf("20 pseudorandom integers from \"rand\"\n");
for(i = 0; i < 20; i++)
{
printf("%d\n", rand());
}
}